#chat_container {
    margin: 30px;
    display: flex;
    flex-direction: row;
    width: 830px;
    height: 600px;
    position: relative;
    border-style: solid;
    background-color: #f6f9f6;
    border-width: 4px;
    border-radius: 15px;
    
    .chat_list_container {
        border-right: 3px solid black;
        padding: 20px;
        .chat_list {
            width: 150px;
            overflow-y: auto;
            height: calc(100% - 100px);

            .chat_list_item {
                border: 3px solid black;
                padding: 10px;
                text-align: center;
                line-height: 3.125rem;
                cursor: pointer;
                margin-bottom: 5px;

                &:hover,
                &.selected {
                    background: rgb(0, 0, 0);
                    color: white;
                    transition: all 0.5s ease-out;
                }
            }
        }
    }

    .message_list {
        flex: 1;
        overflow-y: auto;
        height: calc(100% - 100px);
        border-bottom: 0;
        .message_item {
            padding: 20px;
            display: flex;
            flex-wrap: wrap;

            .message_sender {
                width: 100%;

                img {
                    width: 20px;
                    height: 20px;
                    padding-right: 10px;
                }
            }

            .message_content {
                border: 1px solid #000;
                width: max-content;
                padding: 10px 20px;
                border-radius: 4px;
                color: white;
                background: rgb(0, 0, 0);
            }

            &.from_me {
                text-align: right;
                justify-content: right;

                .message_content {
                    text-align: right;
                    justify-content: right;
                    background: #000000;
                }
            }
        }
    }

    .message_input {
        width: 630px;
        border-top: 3px solid #000;
        height: 100px;
        position: absolute;
        bottom: 0;
        right: 0;
        .message_type {
            display: flex;
            justify-content: center;
            border-bottom: 3px solid #000;
            .message_type_item {
                width: 100px;
                &:hover {
                    font-weight: bold;
                    cursor: pointer;
                }
            }
        }

        .message_input_area {
            width: 650px;
            display: flex;

            .message_input_box {
                max-width: 470px;
                height: 70px;
                background-color: #05060f0a;
                padding: 0 1rem;
                border: 2px solid transparent;
                font-size: 1rem;
            }

            .message_send_btn {
                margin-left: 30px;
                margin-top: 2px;
                width: 90px;
                height: 70px;
                background-color: black;
                transition: background-color 0.3s ease; // 添加过渡效果
                font-size: 1.25rem;

                &:hover {
                    background-color: rgb(251, 251, 251) !important; // 修改悬停时的背景颜色
                    color: black !important;
                    border: 2px solid black;
                }
            }
        }
    }
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }